/*
 * Copyright 2018 the original author or authors.
 * 
 * you can use the file or import project.but Do not take legal responsibility.
 * Only for learning communication.
 *
 * Java compiled version 1.8 or higher
 * 
 * 
 * 
 * 
 */
 
package org.demo.util;

/**
 * 【计算用时工具类】
 * @author jx-air
 * @date 2017年10月16日 下午1:54:23 
 * @version V1.0
 */
public abstract class ExaTimeUtil {

	/**
	 * 计算用时工具类，返回字符表示的秒
	 */
	public static String useTime(long startTime) {
		
		long useTime = System.currentTimeMillis() - startTime ;
		return (useTime / 1000) + "." +useTime% 1000;
	}
}
